﻿@model sBlog.Net.Models.Account.UpdateProfileModel

@{
    ViewBag.Title = string.Format("{0} || {1}", Model.Title, "Update your profile");
}

@Html.Partial("UpdateStatus", Model.UpdateStatus)

<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">Profile Settings</h3>
    </div>
    <div class="panel-body">
        @using (Html.BeginForm())
        {
            @Html.ValidationSummary()
            <div>
                <fieldset>
                    <div class="editor-label">
                        @Html.LabelFor(m => m.UserEmailAddress)
                    </div>
                    <div class="editor-field">
                        @Html.TextBoxFor(m => m.UserEmailAddress, new { @class = "inputBoxBig" })
                    </div>

                    <div class="editor-label">
                        @Html.LabelFor(m => m.UserDisplayName)
                    </div>
                    <div class="editor-field">
                        @Html.TextBoxFor(m => m.UserDisplayName, new { @class = "inputBoxBig" })
                    </div>

                    <div class="editor-label">
                        @Html.LabelFor(m => m.NewPassword)
                    </div>
                    <div class="editor-field">
                        @Html.PasswordFor(m => m.NewPassword, new { @class = "inputBoxBig" })
                    </div>

                    <div class="editor-label">
                        @Html.LabelFor(m => m.ConfirmPassword)
                    </div>
                    <div class="editor-field">
                        @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "inputBoxBig" })
                    </div>
                
                    <div class="editor-label">
                        @Html.LabelFor(m => m.UserSite)
                    </div>
                    <div class="editor-field">
                        @Html.TextBoxFor(m => m.UserSite, new { @class = "inputBoxBig" })
                    </div>
                    <br/>
                    <p class="pull-right">
                        <input type="submit" value="Update Profile" class="btn btn-lg btn-primary" />
                    </p>
                </fieldset>
            </div>
        }
    </div>
</div>
